package com.mc.bean;

import java.sql.Timestamp;

/**
 * @author wangcf
 * @version 1.0
 * @Description 赛事实体类
 * @date 2023/2/11 11:50
 */
public class Match {

    /**
     * 赛事编号
     */
    private int mid;

    /**
     * 赛事名称
     */
    private String mname;

    /**
     * 赛事简介
     */
    private String overview;

    /**
     * 赛事开始时间
     */
    private Timestamp starttime;

    /**
     * 赛事结束时间
     */
    private Timestamp endtime;

    /**
     * 赛事状态编号
     */
    private int msid;

    /**
     * 赛事类型编号
     */
    private int mtid;


    public Match(String mname, Timestamp starttime, Timestamp endtime, int msid, int mtid) {
        this.mname = mname;
        this.starttime = starttime;
        this.endtime = endtime;
        this.msid = msid;
        this.mtid = mtid;
    }

    @Override
    public String toString() {
        return "Match{" +
                "mid=" + mid +
                ", mname='" + mname + '\'' +
                ", overview='" + overview + '\'' +
                ", starttime=" + starttime +
                ", endtime=" + endtime +
                ", msid=" + msid +
                ", mtid=" + mtid +
                '}';
    }

    public Match(String mname, String overview, Timestamp starttime, Timestamp endtime, int msid, int mtid) {
        this.mname = mname;
        this.overview = overview;
        this.starttime = starttime;
        this.endtime = endtime;
        this.msid = msid;
        this.mtid = mtid;
    }

    public Match(int mid, String mname, String overview, Timestamp starttime, Timestamp endtime, int msid, int mtid) {
        this.mid = mid;
        this.mname = mname;
        this.overview = overview;
        this.starttime = starttime;
        this.endtime = endtime;
        this.msid = msid;
        this.mtid = mtid;
    }

    public Match() {
    }

    public int getMid() {
        return mid;
    }

    public void setMid(int mid) {
        this.mid = mid;
    }

    public String getMname() {
        return mname;
    }

    public void setMname(String mname) {
        this.mname = mname;
    }

    public String getOverview() {
        return overview;
    }

    public void setOverview(String overview) {
        this.overview = overview;
    }

    public Timestamp getStarttime() {
        return starttime;
    }

    public void setStarttime(Timestamp starttime) {
        this.starttime = starttime;
    }

    public Timestamp getEndtime() {
        return endtime;
    }

    public void setEndtime(Timestamp endtime) {
        this.endtime = endtime;
    }

    public int getMsid() {
        return msid;
    }

    public void setMsid(int msid) {
        this.msid = msid;
    }

    public int getMtid() {
        return mtid;
    }

    public void setMtid(int mtid) {
        this.mtid = mtid;
    }
}
